import request from '@/utils/request'

export function getAssetsinfolist (params) {
  return request({
    url: '/back/inventory/list',
    method: 'post',
    data:params
  })
}
export function addassets (params) {
  return request({
    url: '/back/inventory/saveOrUpdate',
    method: 'post',
    data:params
  })
}
export function deleteassets (params) {
  return request({
    url: '/back/inventory/removeById',
    method: 'post',
    data:params
  })
}

export function setassetsdepartment (params) {
  return request({
    url: '/back/inventory/setGroup',
    method: 'post',
    data:params
  })
}

export function setassetsTest (params) {
  return request({
    url: '/back/inventory/setTest',
    method: 'post',
    data:params
  })
}

export function addassetsgroup (params) {
  return request({
    url: '/back/group/saveOrUpdate',
    method: 'post',
    data:params
  })
}

export function getrulelist (params) {
  return request({
    url: '/back/inventory-group/list',
    method: 'post',
    data:params
  })
}

export function deletegroup (params) {
  return request({
    url: '/back/group/removeByIds',
    method: 'post',
    data:params
  })
}


export function addrule (params) {
  return request({
    url: '/back/inventory-group/removeById',
    method: 'post',
    data:params
  })
}

export function deleterule (params) {
  return request({
    url: '/back/inventory-group/removeById',
    method: 'post',
    data:params
  })
}

export function setpolicyStatus (params) {
  return request({
    url: '/back/inventory-group/setPolicyStatus',
    method: 'post',
    data:params
  })
}

export function getDiscovery () {
  return request({
    url: '/back/inventoryDiscovery/getById',
    method: 'post',
    data: {id:1}
  })
}

export function updateDiscovery (params) {
  return request({
    url: '/back/inventoryDiscovery/updateById',
    method: 'post',
    data: params
  })
}

